package net.gq.logistics.service.serviceimpl;

import net.gq.logistics.mapper.BaseDataMapper;
import net.gq.logistics.pojo.BaseData;
import net.gq.logistics.pojo.BaseDataExample;
import net.gq.logistics.service.BaseDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ASUS
 * @date 2020/5/25
 */
@Service("baseDataService")
public class BaseDataServiceImpl implements BaseDataService {

    @Resource(name = "baseDataMapper")
    private BaseDataMapper baseDataMapper;

    @Override
    public int deleteByPrimaryKey(Long baseId) {
        return baseDataMapper.deleteByPrimaryKey(baseId);
    }

    @Override
    public int insert(BaseData record) {
        return baseDataMapper.insert(record);
    }

    @Override
    public int insertSelective(BaseData record) {
        return baseDataMapper.insertSelective(record);
    }

    @Override
    public List<BaseData> selectByExample(BaseDataExample example) {
        return baseDataMapper.selectByExample(example);
    }

    @Override
    public BaseData selectByPrimaryKey(Long baseId) {
        return baseDataMapper.selectByPrimaryKey(baseId);
    }

    @Override
    public int updateByPrimaryKeySelective(BaseData record) {
        return baseDataMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BaseData record) {
        return baseDataMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<BaseData> selectBaseDataByParentName(String str) {
        return baseDataMapper.selectBaseDataByParentName(str);
    }
}
